package org.rcy.controller;

import org.rcy.config.BannerPathProvier;
import org.rcy.framework.api.entity.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/banner")
@RestController
public class BannerController {

	@Autowired
	private BannerPathProvier bannerPathProvier;

	@GetMapping("/getList")
	public ResultMessage getHomeBanners() {
//		return ResultMessage.error("测试错误信息");
		return ResultMessage.success(bannerPathProvier.getPathArray());
	}
}
